'Declaration Public Function Sub(Of TProperty As {New})( _ ByVal getter As Expression(Of Func(Of TObject,TProperty)), _ ByVal props As Action(Of JsonObjectCoderBuilder(Of TProperty)), _ Optional ByVal skipOnWrite As Func(Of TProperty,Boolean) _ ) As JsonObjectCoderBuilder(Of TObject)
public JsonObjectCoderBuilder<TObject> Sub<TProperty>( Expression<Func<TObject,TProperty>> getter, Action<JsonObjectCoderBuilder<TProperty>> props, Func<TProperty,bool> skipOnWrite ) where TProperty: new()
Parameters
- getter
- An System.Linq.Expressions.Expression object to get the property value from the object.
- props
- An System.Action for setting of an object properties to the object coder builder.
- skipOnWrite
- A function with condition to skip writing the property.
Type Parameters
- TProperty
- The type of the property.
Return Value
The current instance of JsonObjectCoderBuilder<TObject>.